package com.qingcheng.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @ProjectName: qingcheng_parent
 * @ClassName: Result
 * @Time: 2019/6/22
 * @Author: zhou24
 * @Description:
 * @Experience:
 */

/**
 * @Data //@ToString，@EqualsAndHashCode和@Getter/@Setter和的特征@RequiredArgsConstructor
 * @NoArgsConstructor //  无参构造
 * @AllArgsConstructor //全参构造
 */
@Data
@AllArgsConstructor
public class Result {
    /**
     * code 返回的业务码 0：成功执行 1：发生错误
     * message 信息
     */
    private Integer code;
    private String message;

    public Result() {
        this.code = 0;
        this.message = "执行成功";
    }

}
